import GameDB from "./GameDB";
import GameEvent from "./GameEvents";
import GameView from "./GameView/GameView";

/**
 * 牌局管理者
 */
export default class GameCtrl {
  private gameView: GameView = null;
  private gameDB: GameDB = null;

  Init(gameView: GameView) {
    this.gameView = gameView;
    this.gameDB = new GameDB()
    this.gameView.BindModel(this.gameDB)
    this.gameDB.Init();
  }


  public Play() {
    //移动所有牌到发牌区
    this.gameDB.Play()
  }

  public Exit() {
    this.gameView.UnBindModel()
  }
}
